package com.otaku.admin.dao.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 权限表
 */
@TableName("sys_permission")
public class Permission extends BaseEntity<Permission> {
	private Integer id;
	// 权限名称
	@TableField("permName")
	private String permName;
	// 权限标识
	@TableField("permTag")
	private String permTag;
	// 请求url
	private String url;
	/**
	 * 顺序
	 * 数字越小顺序越靠前
	 * 默认值 0
	 */
	private Integer permStore;

	/**
	 * 权限类型
	 * 1.目录 Catalog 导航目录
	 * 2.页面 page
	 * 3.按钮 button
	 */
	private String permType;
	/**
	 * 层级
	 * 	0：导航目录
	 * 	其他类型为父节点下一级
	 */
	private Integer permLevel;
	/**
	 * 父节点
	 */
	private Integer parentId;

	public Permission() {
	}


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getPermName() {
		return permName;
	}

	public void setPermName(String permName) {
		this.permName = permName;
	}

	public String getPermTag() {
		return permTag;
	}

	public void setPermTag(String permTag) {
		this.permTag = permTag;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getPermType() {
		return permType;
	}

	public void setPermType(String permType) {
		this.permType = permType;
	}

	public Integer getPermLevel() {
		return permLevel;
	}

	public void setPermLevel(Integer permLevel) {
		this.permLevel = permLevel;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public Integer getPermStore() {
		return permStore;
	}

	public void setPermStore(Integer permStore) {
		this.permStore = permStore;
	}
}
